﻿<?php 
include "./class_fetion.php"; 

//new fetion class and init 
$fetion = new fetion('13522038626', 'cakephp123');
$fetion->init() or die("fetion init failure!\n"); 

//example 1 
$fetion->sent_sms('tel:13522038626', 'caocaocao'); 

//example 2 
//$fetion->sent_sms('sip:58971xxxx@fetion.com.cn;p=4013', '我想撒点野！'); 

//example 3 
//$friends = $fetion->get_friends_list(); 
//var_dump($friends); 

?> 